module.exports = {
  css: {
    loaderOptions: {
      less: {},
    },
  },
  productionSourceMap: false,
  publicPath: "/", //发布地址
  chainWebpack: (config) => {
    config.output
      .filename("js/[name].[hash].js")
      .chunkFilename("js/[name].[hash].js")
      .end();
  },
  devServer: {
    open: true, //自动打开浏览器
    overlay: {
      warning: false,
      errors: false,
    },
    // proxy: {
    //   "/api": {
    //     target: "https://red.library.sh.cn/service_redsource",
    //     ws: true,
    //     changeOrigin: true,
    //   },
    // },
  },
};
